<template>
    <div class="project">
    <Breadcrumb :menulist="menulist" :showSystem="false"> </Breadcrumb>
    <el-button class="addPro" icon="el-icon-circle-plus" type="primary" @click="showAddPro">添加插件</el-button>
    <el-table
        :data="tableData"
        max-height="600"
        line-height="50"
        border
        :header-cell-style='headerStyle'
        style="width: 100%">
        <el-table-column
            prop="proId"
            label="插件ID"
            align="center">
        </el-table-column>
        <el-table-column
            prop="proName"
            align="center"
            label="插件名称">
        </el-table-column>
        <el-table-column
            prop="proType"
            align="center"
            label="组件名称">
        </el-table-column>
        <el-table-column
            prop="databaseName"
            align="center"
            label="插件类型">
        </el-table-column>
        <el-table-column
            prop="describe"
            align="center"
            label="描述">
        </el-table-column>
        <el-table-column
            prop="databaseName"
            align="center"
            label="操作">
        </el-table-column>
    </el-table>

    <!-- 添加项目解决方案 -->
    <el-dialog title="添加项目解决方案"  :visible.sync="dialogFormVisible" width="40%">
      <el-form :model="form" label-width="120px">
        <el-form-item label="解决方案编码">
          <el-input v-model="form.proCode" placeholder="请输入解决方案编码"></el-input>
        </el-form-item>
        <el-form-item label="解决方案名称">
          <el-input v-model="form.proName" placeholder="请输入解决方案名称"></el-input>
        </el-form-item>
        <el-form-item label="解决方案类型">
          <el-input v-model="form.proType" value="1" disabled></el-input>
        </el-form-item>
        <el-form-item label="解决方案版本">
          <el-input v-model="form.proVersion"></el-input>
        </el-form-item>
        <el-form-item label="数据源名称">
          <el-select v-model="form.databaseName" placeholder="请选择数据源名称" style="width: 100%;">
            <el-option label="T5_WEB_ENTITY" value="T5_WEB_ENTITY"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="所属产品">
          <el-select v-model="form.partPro" placeholder="请选择所属产品版本" style="width: 100%;">
            <el-option label="区域一" value="T5_WEB_META"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="所属产品版本">
          <el-input v-model="form.proVersion"></el-input>
        </el-form-item>
        <el-form-item label="描述">
          <el-input v-model="form.describe"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="dialogFormVisible = false">保 存</el-button>
        <el-button type="primary" plain @click="dialogFormVisible = false">清 除</el-button>
        <el-button @click="dialogFormVisible = false">取 消</el-button>
      </div>
    </el-dialog>
    </div>
</template>


<script>
// @ is an alias to /src
import Breadcrumb from "@/components/Breadcrumb.vue";

export default {
  name: "plug",
  components: {
    Breadcrumb
  },
  data() {
    return {
      menulist: ['解决方案', '插件'],
      headerStyle: {
        "line-height": "40px"
      },
      tableData: [
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        },
        {
          proId: "1",
          proCode: "FC_WEB_MES_SOLUTION",
          proName: "复材数字化集成平台系统",
          proType: "项目",
          proVersion: "V1.0.0",
          databaseName: "mySQL",
          partPro: "T5_WEB_SOLUTION    T5新产品   产品版本", //  所属产品解决方案
          createTime: "2020-06-06 12:20:10",
          createUser: "王小虎",
          updateTime: "2020-06-06 17:20:10",
          updateUser: "王大虎",
          describe: "这是一条新增的数据"
        }
      ],
      formLabelWidth: "100px",
      dialogFormVisible: false,
      form: {
        proCode: "",
        proName: "",
        proType: "项目",
        proVersion: "",
        describe: "这是一条新增的数据",
        databaseName: "",
        partPro: "",
        describe: "",
      },

      options_system: [{
        value: '1',
        label: '天河智造执行系统'
      }, {
        value: '2',
        label: '复材数字化集成平台系统'
      }],
      value_system: '2'
    };
  },
  methods: {
    showAddPro() {
      this.dialogFormVisible = true
    }
  }
};
</script>

<style scoped>
.addPro {
  float: right;
  margin-bottom: 20px;
}

</style>
